package subject_set.top101;

/**
 * @author haomin
 * @date 2022/11/01 20:57
 **/
public class BM28 {
    public class Solution {
        public int maxDepth (TreeNode root) {
            if(root == null) return 0;
            return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));
        }
    }
}